@extends('backend::modal')
@section('title',$page_title)
@section('content')
    @component('backend::component.form.form')
        @slot('page_title') {{$page_title}} @endslot
        @slot('icon') hcl-ziyuan @endslot
        @slot('formId') currency @endslot
        @slot('action')
            @if(!isset($info))
                {{route('b_ShopSpec_create')}}
            @else
                {{route('b_ShopSpec_update',['id'=>$info->id])}}
            @endif
        @endslot

        @component('backend::component.form.form-group')
            @slot('title') 类型 @endslot
            @component('backend::component.form.select',['options'=>$goods_types])
                @slot('name') goods_type @endslot
                @slot('value') {{$info->type_id ?? $type}} @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 规格名称 @endslot
            @component('backend::component.form.input')
                @slot('name') title @endslot
                @slot('value') {{$info->title ?? ''}} @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 规格值 @endslot
            @component('backend::component.form.textarea')
                @slot('name') value @endslot
                @slot('row') 2 @endslot
                @slot('value') {{$info->value ?? ''}} @endslot
            @endcomponent
            @slot('remark') 多个值用逗号分割@endslot
        @endcomponent


        @slot('buttons')
            @component('backend::component.form.button')
                @slot('title') 提交 @endslot
                @slot('params') {"formId":"#currency"} @endslot
                @slot('class') btn-min-width ajax-form @endslot
            @endcomponent
            @component('backend::component.form.button')
                @slot('title') 重置 @endslot
                @slot('type') reset @endslot
                @slot('color') danger @endslot
                @slot('class') btn-min-width @endslot
            @endcomponent
        @endslot
    @endcomponent
@endsection
@push('scripts')
    <script>

    </script>
@endpush